<div id="forgetPwdRegion" class="center" ng-controller="forgetPwdCtrl">
    <div>
        <img src="/img/bailehui.png" alt=""/>
    </div>
    <form name="forgetPwdForm" novalidate style="margin-top: 50px;">
        <div class="form-group">
            <input type="text" class="form-control" name="answer" ng-model="forgetPwd.username" placeholder="用户名" required ng-blur="forgetPwd.forget_pwd_question()">
            <div class="error" ng-show="forgetPwdForm.username.$dirty && forgetPwdForm.username.$invalid">
                <div ng-show="forgetPwdForm.username.$error.required">用户名必填！</div>
            </div>
        </div>
        <div class="form-group">
            <input type="text" class="form-control" name="question" ng-model="forgetPwd.question" placeholder="问题" readonly>
        </div>
        <div class="form-group">
            <input type="text" class="form-control" name="answer" ng-model="forgetPwd.answer" placeholder="答案" required>
            <div class="error" ng-show="forgetPwdForm.answer.$dirty && forgetPwdForm.answer.$invalid">
                <div ng-show="forgetPwdForm.answer.$error.required">答案必填！</div>
            </div>
        </div>
        <div class="form-group">
            <input type="password" class="form-control" name="new_pwd" ng-model="forgetPwd.new_pwd" placeholder="密码" required>
            <div class="error" ng-show="forgetPwdForm.new_pwd.$dirty && forgetPwdForm.new_pwd.$invalid">
                <div  ng-show="forgetPwdForm.new_pwd.$error.required">请输入密码！</div>
            </div>
        </div>
        <div class="form-group">
            <input type="password" class="form-control" name="checkNewPassword" ng-model="forgetPwd.checkNewPassword" placeholder="确认密码" required match="forgetPwd.new_pwd">
            <div class="error" ng-show="forgetPwdForm.checkNewPassword.$dirty && forgetPwdForm.checkNewPassword.$invalid">
                <div  ng-show="forgetPwdForm.checkNewPassword.$error.required">请输入确认密码！</div>
                <div  ng-show="forgetPwdForm.checkNewPassword.$error.match" class="form-input-error">确认新密码与新密码不相等！</div>
            </div>
        </div>
        <button type="button" class="btn btn-default" ng-disabled="forgetPwdForm.$invalid"  ng-click="forgetPwd.comfirnResetPwd()">确认重置密码</button>
    </form>
</div>
